package feeinterface.utils;
import org.apache.log4j.Logger;

import com.ulwx.tool.Path;
import com.ulwx.tool.StringUtils;
import com.ulwx.tool.XMLPropertyUtils;

public class PathConfig {
	static Logger log = Logger.getLogger(PathConfig.class);
	
	private static String FILENAME = "/url.xml";
	public static String tollcenterUrl = "";//充值中心地址
		
	static{
		try {
			XMLPropertyUtils utils = new XMLPropertyUtils(Path.getResource(FILENAME), "utf-8", false);
			utils.setEncoding("utf-8");			

			String WEBSITE_tollcenterUrl = utils.getString("website.tollcenterUrl");
			if(!StringUtils.isEmpty(WEBSITE_tollcenterUrl)){
				tollcenterUrl = WEBSITE_tollcenterUrl;
			}
		} catch (Exception e) {
			//e.printStackTrace();
			log.error("read ["+FILENAME+"] error."+e);
		}
	}
		
	public static void main(String[] args) {
		System.out.print(PathConfig.tollcenterUrl);
	}
}
